package com.hopoke.user.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hopoke.model.domain.po.user.Role;
import com.hopoke.user.service.RoleService;
import com.hopoke.user.mapper.RoleMapper;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author zengjing
* @description 针对表【role】的数据库操作Service实现
* @createDate 2024-12-06 14:18:52
*/
@Service
@RequiredArgsConstructor
public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role>
    implements RoleService{

    private final RoleMapper roleMapper;
    @Override
    public List<Long> getRolesByUserId(Long userId) {
        return roleMapper.getRolesByUserId(userId);
    }
}




